package com.ruijiang.controller.task_service;

import com.ruijiang.controller.ApiPrefix;
import com.ruijiang.entity.TaskDetails;
import com.ruijiang.service.TaskService.TaskDetailsService;
import com.ruijiang.vo.task.TaskInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping(ApiPrefix.TASK_SERVICE+"/taskDetails")
@Slf4j
public class TaskDetailsController {

    @Autowired
    TaskDetailsService taskDetailsService;


    @GetMapping("/{taskId}")
    public List<TaskDetails> getTaskDetailsByTaskId(@PathVariable String taskId){
        log.info("获取工单详情{} ",taskId);

        return taskDetailsService.getTaskDetailsByTaskId(taskId);
    }


}
